<!DOCTYPE html>
<script>
  window.onportalactivate = e => {
    // Busy-loop to keep the predecessor in the "orphaned" state. This only
    // works if we create portals in a separate process.
    while (true) {}
  }
</script>
